{extend name='admin@public/content'}

{block name="content"}
<form autocomplete="off" onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='form-horizontal layui-form padding-top-20'>

    <div class="form-group">
        <label class="col-sm-2 control-label">会员账号</label>
        <div class='col-sm-8'>
            <input autofocus name="username" value='{$vo.username|default=""}' required="required" title="会员账号" placeholder="会员账号" class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">会员昵称</label>
        <div class='col-sm-8'>
            <input autofocus name="nickname" value='{$vo.nickname|default=""}' title="会员昵称" placeholder="会员昵称" class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">会员性别</label>
        <div class='col-sm-8'>
            <select name='sex' class='layui-select full-width' lay-ignore>
                <option selected value='0'>保密</option>
                <option value='1'>男</option>
                <option value='2'>女</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">会员地址</label>
        <div class='col-sm-8'>
            <input autofocus name="address" value='{$vo.address|default=""}'  title="会员地址" placeholder="会员地址" class="layui-input">
        </div>
    </div>

    <div class="hr-line-dashed"></div>

    <div class="col-sm-7 col-sm-offset-2">
        <div class="layui-form-item text-center">
            {if !empty($vo.id)}<input type="hidden" name="id" value="{$vo.id}">{/if}
            <button class="layui-btn" type="submit">保存配置</button>
            <button class="layui-btn layui-btn-danger" type='button' onclick="window.history.back()">取消编辑</button>
        </div>
    </div>

    <script>window.form.render();</script>

    <!--<script>-->
        <!--/*! 实例富文本编辑器  */-->
        <!--require(['ckeditor'], function () {-->
            <!--window.createEditor('[name="content"]', {height: 500});-->
        <!--});-->
    <!--</script>-->
</form>
{/block}